package com.pig4cloud.pigx.pay.notice.impl;

import com.pig4cloud.pigx.pay.entity.PayTradeOrder;
import com.pig4cloud.pigx.pay.notice.PayResultNotice;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Service;

/**
 * <p>Project: bblocks-pro - PayResultNoticeNone</p>
 * <p>描述：结果通知-不通知</p>
 *
 * @Author Zhao [125043150@qq.com]
 * @Date 2023/10/9 23:41
 * @Version 1.0
 * @since 8
 */
@ConditionalOnMissingBean
@Slf4j
@Service
public class PayResultNoticeNone implements PayResultNotice {

    /**
     * 支付结果通知
     *
     * @param payOrder
     * @return 1=成功，
     */
    @Override
    public int noticePayResult(PayTradeOrder payOrder) {
        log.warn("订单：{} 未实现推送支付结果！",payOrder.getPayNo());
        return 0;
    }
}
